﻿// Write an expression that calculates rectangle’s area by given width and height

using System;

class CalculateRectanglesArea
{
    static void Main()
    {
        Console.Write("Enter width of the rectangle : ");
        double width = double.Parse(Console.ReadLine());
        Console.Write("Enter height of the rectangle : ");
        double height = double.Parse(Console.ReadLine());

        if ((width > 0) && (height > 0))
        {
            double area = width * height;
            Console.WriteLine("The rectangle's area is : {0}", area);
        }
        else
        {
            Console.WriteLine("You have entered incorrect measures.");
        }

    }
}